package com.fdb.efp.console.route;

import com.fdb.efp.console.executor.impl.AbstractRoutePluginExecutor;

import java.util.Map;

@Deprecated
public abstract class AbstractRouteServicePluginExecutor extends AbstractRoutePluginExecutor {
	
	public abstract boolean serviceCall(String serviceId, String serviceMethod, String g_bizSerno, String e_bizSerno) throws Exception;
	
	private String[] registerArgs = {"evo.bizSerno", "evo.bizSerno", "evo.globalBizSerno", "evo.bizSerno"};

	public String[] getRegisterArgs() {
		return registerArgs;
	}

	public boolean execute(Map<String, String> params) throws Exception {
		return serviceCall(params.get(registerArgs[0]), params.get(registerArgs[1]), params.get(registerArgs[2]), params.get(registerArgs[3]));
	}

}
